package com.weipai.springboot.module.service;

import com.weipai.springboot.model.Brand;
import com.weipai.springboot.model.Storage;
import com.weipai.springboot.model.api.Response;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
import java.util.Map;

/**
 * @Author: 曹朋飞
 * @Date: 2018/07/27 17:49
 * <p>
 * 仓库
 */
public interface StorageService {
    //保存
    Response save(Storage storage);

    //查询仓储详情
    Response getStorageById(String storageId);

    //修改
    Response update(Storage storage);

    //删除
    Response deleteById(String storageId);

    //更改仓库的状态
    Response changeStatus(String storageId, Integer status);

    //获取数据（此方法查出的数据不包含逻辑删除的数据）
    Response selectAllByStorageDel(int del, String search, Integer page,Integer size, String sort, String way,String draw);

    //批量删除
    Response batchDeleteById(String[] id);

    //缺货列表
    Response listNoGoods(String storageId, Integer page, Integer size, String draw);

    //根据位置定位仓库
    Response locateStorage(String longitude, String latitude);

    //查询商品各个仓储下面的库存量
    Response getStorageGoodsNum(String skuNumber);
}
